<?php
include_once('ClsSebent/config.php');

$qry="Select site_id from reseller where updates='Y'";
$result=mysql_query($qry);

while($row=mysql_fetch_row($result))
{
	$_SESSION['SITE_ID']=$row["site_id"];
$sql="UPDATE site_home SET meta_keywords='$meta_keywords',meta_description='$meta_description', meta_title='$meta_title' WHERE id='".$_SESSION['SITE_ID']."'";

mysql_query($sql);

	    if (isset($page_content_img) && $page_content_img != "") {

			if(!copy($page_content_img,"./photos/contents/${site_id}_" . $page_content_img_name)){ echo "coping error!"; exit;}
		}

		if (isset($banner) && $banner != "") {

			if(!copy($banner,"./photos/banners/${site_id}_" . $banner_name)){ echo "coping error!"; exit;}
		}
}
		echo "<H4><FONT COLOR=red>Meta-tags Updated Globally!</font></H4><BR>";
?>